package com.itheima.day01.ZuoYe.ZuoYe3_6;

public class SUV2 extends Auto{
    private static double smallStandard = 4295;
    private static double mediumStandard = 5070;

    private SUV2() {
    }
    private static SUV2 s1 = new SUV2();

    private SUV2(double price, double length, String brand) {
        super(price, length, brand);
    }

    public static SUV2 getS1(){
    return s1;
    }
    public static int compare(){
        if ( s1.getLength()< smallStandard ){
            return 1;
        }else if (s1.getLength() > mediumStandard){
            return 2;
        }else{
            return 3;
        }
    }
}
